package com.wzdigit.wms.basic.client.request.basic;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 批次属性 创建输入
 * @author yangdongjie
 * @LotAttr.java
 * @2021年1月19日下午2:01:04
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = false)
public class CreateLotAttrRequest implements Serializable {

	private static final long serialVersionUID = -6310968496772733261L;

	/**
	 * 批次属性规则代码
	 */
	@ApiModelProperty(value = "批次属性规则代码", required = true)
	@NotBlank(message = "批次属性规则代码不能为空")
    private String lotAttrCode;

	/**
	 * 描述
	 */
	@ApiModelProperty(value = "描述", required = true)
	@NotBlank(message = "描述不能为空")
    private String description;

	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注", required = false)
    private String comments;

	/**
	 * 是否有效
	 */
	@ApiModelProperty(value = "是否有效", required = true)
	@NotNull(message = "是否有效不能为空")
    private Integer isEnabled;
}